import { useLocation } from "react-router";

export const useRouteType = () => {
  const units = useLocation().pathname.split("/");
  return units[units.length - 1];
};
